export default {
  data() {
    return {

    }
  },
  created() {
    
  },
  filters: {

  },
  methods: {
    getList() {
      let params = $.extend({}, this.searchParams, this.otherParams);
      this.list(params);
    },
    list(aparams) {
      let self = this,
        params = {
          page: this.pageNumber,
          rp: this.pageSize
        };
      params = $.extend({}, params, aparams);
      API.park_vip.monthIncomeList(params)
        .then(res => {
          let data = res.data,
            list = data.rows;
          self.tbodysInfo = list;
          self.total = data.total;
        }, err => { })
    },
    exportData() {
      let self = this;
      let params = {
      };
      params = $.extend({}, params, this.searchParams, this.otherParams);
      self.showDialog("确认导出该报表?", '', function () {
        self.toExportAsync('/monthTicket/IncomeReport/export.do', params);
      });
    },
    toRecreate(income) {
      var self = this;
      let params = {
        parkId: income.parkId,
        year: income.year
      };
      self.showDialog("确认重新生成?", '', function () {
        API.park_vip.monthIncomeRecreate(params)
          .then(res => {
            self.getList();
          }, err => { })
      });
    }
  }
}